# -*- coding: utf-8 -*-
#
# Copyright (C) 2011  Benjamin Heil
#
# This file is part of Feedmail.
#
# Feedmail is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

from django.conf.urls.defaults import *
from account.views import *

urlpatterns = patterns('',
    url(r'^login.html$', 'django.contrib.auth.views.login', {'template_name': 'account/login.html'}, name='account_login'),
    url(r'^relog.html$', 'django.contrib.auth.views.logout_then_login', name='account_logout_then_login'),
    url(r'^logout.html$', 'django.contrib.auth.views.logout', {'template_name': 'account/logout.html'}, name='account_logout'),
    url(r'^password-change.html$', 'django.contrib.auth.views.password_change', {'template_name': 'account/password_change.html'}, name='account_password_change'),
    url(r'^password-change-done.html$', 'django.contrib.auth.views.password_change_done', {'template_name': 'account/password_change_done.html'}, name='account_password_change_done'),
    url(r'^password-reset.html$', 'django.contrib.auth.views.password_reset', {'template_name': 'account/password_reset.html', 'email_template_name': 'account/password_reset_email.html'}, name='account_password_reset'),
    url(r'^password-reset-done.html$', 'django.contrib.auth.views.password_reset_done', {'template_name': 'account/password_reset_done.html'}, name='account_password_reset_done'),
    url(r'^register.html$', register, name='account_register'),
    url(r'^profile.html$', profile, name='account_profile'),
    url(r'^activate/(?P<activation_id>[a-z]+).html$', activate, name='account_activate'),
    url(r'^mail-confirmation/(?P<activation_id>[a-z]+).html$', mail_confirmation, name='account_mail_confirmation'),
    url(r'^resend-activation-mail.html', resend_activation_mail, name='resend_activation_mail'),
    url(r'^reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+).html$', 'django.contrib.auth.views.password_reset_confirm', {'template_name': 'account/password_reset_confirm.html'}, name='account_reset'),
    url(r'^reset/done.html$', 'django.contrib.auth.views.password_reset_complete', {'template_name': 'account/password_reset_complete.html'}, name='account_reset_done'),
    url(r'^delete-my-account.html$', delete_my_account, name='account_delete_my_account'),
)
